<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<div id="app">
    <p ref="pDom">斯巴达克剧哦社</p>
</div>
<script src="../vue.js"></script>
<script>
    new Vue({
        el:"#app",
        beforeMount(){
            console.log(this.$refs.pDom);
        },
        mounted(){
            console.log(this);
            console.log(this.$refs);
            console.log(this.$refs.pDom);
            console.log(this.$refs.pDom.innerText);
            console.log(this.content);
        },
        data(){
            return{
                content:'四年级第VB万儿UI'
            }
        }
    })
</script>
</body>
</html>